package com.migo.service.impl;

import com.migo.dao.MgHomeVideoDao;
import com.migo.entity.MgHomeVideoEntity;
import com.migo.service.MgHomeVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;



@Service("mgHomeVideoService")
public class MgHomeVideoServiceImpl implements MgHomeVideoService {
	@Autowired
	private MgHomeVideoDao mgHomeVideoDao;
	
	@Override
	public MgHomeVideoEntity queryObject(Integer id){
		return mgHomeVideoDao.queryObject(id);
	}
	
	@Override
	public List<MgHomeVideoEntity> queryList(Map<String, Object> map){
		return mgHomeVideoDao.queryList(map);
	}

	@Override
	public List<MgHomeVideoEntity> queryApiList(Map<String, String> map) {
		return mgHomeVideoDao.queryApiList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map){
		return mgHomeVideoDao.queryTotal(map);
	}
	
	@Override
	public void save(MgHomeVideoEntity mgHomeVideo){
		mgHomeVideoDao.save(mgHomeVideo);
	}
	
	@Override
	public void update(MgHomeVideoEntity mgHomeVideo){
		mgHomeVideoDao.update(mgHomeVideo);
	}
	
	@Override
	public void delete(Integer id){
		mgHomeVideoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		mgHomeVideoDao.deleteBatch(ids);
	}
	
}
